package com.mjk.common.ai.entity;

import com.mjk.common.base.model.BaseEntity;
import com.mjk.common.core.jdbc.annotation.ArcSharding;
import com.mjk.common.core.jdbc.annotation.Filed;
import com.mjk.common.core.jdbc.annotation.Id;
import com.mjk.common.core.jdbc.service.idgenerator.IdGenerateType;
import lombok.Data;

import java.io.Serializable;

/**
 * 知识库问答记录-引用实体
 */
@Data
@ArcSharding(dataSource = "pg", table = "adi_knowledge_base_qa_ref_embedding")
public class KnowledgeBaseQaRefEmbedding extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id(type = IdGenerateType.AUTO_INCR)
    private Long id;

    @Filed(cloum = "qa_record_id", comment = "问答记录ID")
    private Long qaRecordId;

    @Filed(cloum = "embedding_id", comment = "向量id")
    private String embeddingId;

    @Filed(cloum = "score", comment = "分数")
    private Double score;

    @Filed(cloum = "user_id", comment = "提问用户id")
    private Long userId;
}
